package simultaneously.base;

import java.io.IOException;

/**
 * Created by 焕滨 on 2016/3/12.
 */
public class ResponsiveUI extends Thread {
    private static volatile double d = 1;
    public ResponsiveUI(){
        setDaemon(true);
        start();
    }

    public void run(){
        while (true){
            d  = d + (Math.PI + Math.E) / d;
        }
    }

    public static void main(String[] args) throws IOException {
        new ResponsiveUI();
        while(true){
            System.in.read();
            System.out.print(d);
        }
    }
}
